package com.ecfront.dao;

import java.util.List;

import com.ecfront.pojo.Message;

public interface MessageDAO {

	// property constants
	public static final String MCONTENT = "content";
	public static final String MTYPE = "type";

	public abstract void save(Message transientInstance);

	public abstract void delete(Message persistentInstance);

	public abstract Message findById(java.lang.Integer id);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByMcontent(Object mcontent);

	public abstract List findByMtype(Object mtype);

	public abstract List findAll();

}